<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  const a = {name: 'a'}
  const b = {test: JSON.stringify(a)}
  console.log(b);
  console.log(JSON.stringify(b));
  console.log(JSON.parse(JSON.stringify(b)));
</script>
</body>
</html>
